package com.wanmait.schedule.service;

import com.wanmait.schedule.entity.Apply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.schedule.entity.CompanyUser;
import com.wanmait.schedule.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 申请表	 服务类
 * </p>
 *
 * @author wanmait
 * @since 2022-03-16
 */
public interface ApplyService extends IService<Apply> {

List<Apply> initApply(Integer companyId);
void agree(Integer id);
Boolean refuse(Integer id);
List<Department> initDepartment(Integer companyId);
Boolean distribution(CompanyUser companyUser);
List<CompanyUser>initCompanyUser(Integer companyId);
List<Department> selectDepartment(Integer id,Integer companyId);
Boolean assignment(Integer id,Integer departmentId);


List<Apply> findAll();
Apply isApplied(Integer companyId,Integer userinfoId);

}
